
from selenium import webdriver
import time

file_path = 'D:/project/python100/Day55/selenium.html'
driver = webdriver.Chrome()
driver.get(file_path)
driver.maximize_window()
upload = driver.find_element_by_css_selector('div#signup input[name="upload"]')
upload.send_keys(file_path)
driver.find_element_by_css_selector('div#signup input[type="submit"]').click()
time.sleep(5)

driver.close()
driver.quit()
